System and method for run-time integration of an inset geometry into a background geometry

ABSTRACT

The invention provides a method for integrating an inset geometry within a background geometry. The method comprises the step of identifying a perimeter of the inset geometry. A further step is extending a skirt, having an outer perimeter and an inner perimeter, from the perimeter of the inset geometry out over the background geometry. An additional step is removing portions of the background geometry that are covered by the inset geometry and skirt. Another step is modifying the skirt so that the outer perimeter of the skirt matches background geometry behavior and the inner perimeter matches inset geometry behavior and a continuous transition exists between the outer perimeter and the inner perimeter.

FIELD OF THE INVENTION

The present invention relates generally to computer graphics. Moreparticularly, the present invention relates to run-time integration ofan inset geometry into a background geometry.

BACKGROUND

Computers have been used for many years to do image and graphicsgeneration. In recent years computer generated graphics have become moresophisticated and the power of computer equipment has increased.Similarly, users' expectations of computer graphics have also increased.Computer users have come to expect more realism in computer graphicswhich generally means that there are more objects, and more light andtexture processing on those objects.

Complex images and scenes are mathematically modeled in athree-dimensional space in the computer memory and manipulatedaccordingly. These three-dimensional mathematical models are called wireframes because all the edges of the object are visible at the same timewhen displayed. Three-dimensional models are made to look more realisticby removing the edges which should be hidden and by applying color andshading to the visible surfaces of the model. Texture also improves asimple polygon model by adding opacity and color variations.

In order to provide a better understanding of computer graphicsarchitecture, a generalized computer graphics system will now bediscussed. In FIG. 1, a host processor 20 is provided to process adisplay model or database. The host processor is connected to a geometrysubsystem 22, which transforms object coordinate polygon data to theworld coordinate system. The geometry system can also take care oflighting, viewing transformation and mapping to screen coordinates. Therasterization subsystem 24 converts transformed primitives to pixels andsubpixels. Rasterization includes scan conversion, visible-surfacedetermination and shading. Each pixel and/or subpixel is typicallyassigned an X and Y coordinate, a RGBA (i.e., Red, Green, Blue, Alpha)color value and a Z-value. The pixels are stored in a frame buffer 26and then output to a display 28.

One element of a computer graphics system that is particularly relevantto the present discussion is the geometry subsystem. This is where theworld model is processed and the transformation of the model will takeplace. Typically, the world model that is supplied to the geometrysubsystem is fixed at run-time and the entire database that representsthe scene geometry is compiled in advance. Up to this point in time,models or databases have only practically been modifiable at compiletime and any insertion to the system model has been a compile timeoperation that involves reconstructing the model. This process is timeconsuming and can take anywhere from an hour up to several hours.

An example of a computer graphics application that has used compiledmodeling techniques is high performance vehicle simulation. Such asimulation system may often include a cab that is a vehicle mock-upcontaining a crew compartment with vehicle instruments and controls. Thecab can be mounted on a motion base to provide motion and accelerationcues by moving the cab. The motion base is coupled to a visual system,which provides out-the-window imagery and environmental data for thecrew, host, or both.

A software system called the host oversees the operation of thesimulator. The host monitors the control inputs provided by the crew,and causes the cockpit dials, instruments and displays to reflect theongoing simulation status. In addition, the host controls the motionbase and related audio systems, and tells the visual system what itneeds to know to draw the corresponding out-the-window scene. Areal-time system is a software program within the visual system thatcontrols the image generator in response to host inputs.

The host tells the real-time system about object positions in thesimulated environ ment (e.g., own aircraft, traffic aircraft, groundtraffic, storms, etc.), the status of switchable or selectable items(e.g., runway and environmental lights, runway contamination, etc.), andposition of global environmental effects like illumination (e.g., day,dusk, night) and visibility (e.g., fog, rain, snow, etc.). The real-timesystem returns data such as the nature of the surface beneath the tiresof the aircraft, and whether collisions have occurred between theaircraft and other traffic or storm cells. This communication is largelyasynchronous which means it occurs randomly as needed and is not lockedto the ongoing computation of regular image frames. A simulation systemcan also contain many different types of scene elements such as terrain,aerials or tree canopies, linear features (roads, hedgerows, fences),and point features (trees, power poles, houses, light points). Othermodels can be included in the system such as moving models of airplanes,cars, and helicopters, or environmental models such as clouds, sky,storms, or lightning flashes, etc.

The real-time system gets the required scene data from disk storage andloads it into the appropriate parts of the image generator in anon-going background process called paging. It also sends commands to theimage generator to implement lighting, environ mental, and other specialeffects called for by the host. The real-time system determines theproper level-of-detail (LOD) for scene elements and prepares them forrendering after eliminating elements that will not appear in the scene.This process includes the translations and rotations needed to get sceneelements into their proper position within the scene. In other words,the real-time system controls the geometry engine and provides the inputneeded to allow the scene to be viewed and transformed. Further, thereal-time system also manages the rendering portion of the imagegenerator in a synchronous, lock-step fashion that guarantees a steadystream of video to the displays.

SUMMARY OF THE INVENTION

The invention provides a method for integrating an inset geometry withina background geometry. The method comprises the step of identifying aperimeter of the inset geometry. A further step is extending a skirt,having an outer perimeter and an inner perimeter, from the perimeter ofthe inset geometry out over the background geometry. An additional stepis removing portions of the background geometry that are covered by theinset geometry and skirt. Another step is modifying the skirt so thatthe outer perimeter of the skirt matches background geometry behaviorand the inner perimeter matches inset geometry behavior and a continuoustransition exists between the outer perimeter and the inner perimeter.

Additional features and advantages of the invention will be apparentfrom the detailed description which follows, taken in conjunction withthe accompanying drawings, which together illustrate, by way of example,features of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a computer graphics system;

FIG. 2 illustrates a cross-sectional side-view of geometry to beselected within the background geometry in an embodiment of the presentinvention;

FIG. 3 illustrates a side view of the formation of an opening or holewhere the inset geometry is to be inserted in the background geometry;

FIG. 4 illustrates the insertion of the inset geometry within thebackground geometry as embodied according to the present invention; and

FIG. 5 depicts the skirt mapping and coordination between the backgroundgeometry and the inset geometry as embodied in the present invention.

FIG. 6 depicts a flow diagram of a method for incorporating an insetgeometry into a background geometry according to an embodiment of thepresent invention;

FIG. 7 illustrates a cutter polygon overlaid on a background geometry;

FIG. 8 illustrates a skirt surrounding an inset geometry as overlaid onthe previous background geometry; and

FIG. 9 illustrates a skirt surrounding an inset geometry that is dividedinto clipped skirt fragments;

FIG. 10 depicts a cross-section view of the polygon skirt and insetterrain and their accompanying walls that are beneath the visiblesurface of the model.

DETAILED DESCRIPTION

Reference will now be made to the exemplary embodiments illustrated inthe drawings, and specific language will be used herein to describe thesame. It will nevertheless be understood that no limitation of the scopeof the invention is thereby intended. Alterations and furthermodifications of the inventive features illustrated herein, andadditional applications of the principles of the inventions asillustrated herein, which would occur to one skilled in the relevant artand having possession of this disclosure, are to be considered withinthe scope of the invention.

In the past, computer graphics modeling has not included the ability todynamically incorporate geometry elements at run-time into backgroundgeometry or a global geometry. One problem to be overcome in order todirectly incorporate an additional piece of geometry into the backgroundgeometry is that the inset geometry needs to know specific things aboutthe background geometry in order to be arranged, clipped and combinedwith the background geometry. The computations required to correctlyinsert an inset geometry into a background geometry are complex and timeconsuming. Thus, these computations have been performed in the past atcompile time. In addition, there is a quantization or sampling problemthat can occur at the boundary of an inset geometry that is being addedto the background geometry. The quantization problems can create visualanomalies and cracks at boundaries between the inset geometry and thebackground geometry. The present invention overcomes these problems andallows an inset geometry to be included in a background geometry in realtime.

The present invention discloses a video graphics display system that isable to merge a smaller inset geometry at run time into a largerbackground geometry. The inset geometry can replace a section of thebackground geometry and a gradual transition from the geometric behaviorof the larger section to the geometric behavior of the smaller sectionis achieved in an advantageous way. The transition allows a compositegeometry created from the two separate geometries to be visuallycontinuous and to avoid cracks between the two geometries duringdisplay. The relative positions of the inset geometry and larger background geometry need not be known until run time in the presentinvention.

Visual continuity of the newly formed composite geometry is achieved, inpart, by constructing a “skirt” around the perimeter of the insetgeometry. The skirt comprises a set of polygons that extend from theperimeter of the inset geometry outward a given distance. The distanceof the skirt between the inset geometry and the background geometry neednot be constant in all directions. Skirt polygons have vertices that arecompletely and exactly coincident with the inset geometry along theperimeter of the inset. This method and system can be implemented withinthe computer graphics pipeline or in more specific embodiments in thegeometry subsystem.

The present invention will be described more generally in relation toFIGS. 2-5 and then further details will be discussed later along withFIGS. 6-10. The addition of an inset geometry into a background geometrytypically means that the background geometry model will have a certaingeometric portion removed, as required for each specific situation. Anexample of an insert being made into background geometry is shown inFIGS. 2-5. The term background geometry is generally used here to mean alarger geometry or a global geometry within which a smaller geometry canbe inset or inserted. In terms of the present invention, this means asmaller piece of inset geometry can be inserted into a larger piece ofbackground geometry in real time without requiring a recompilation ofthe entire geometry model database. For example, an airport, army base,city, or any group of buildings can be inserted into a larger terrain.On a smaller scale, a crater or destroyed building portion can beinserted into the geometry of a building, dam, or group of buildings.The background geometry can also be described as the primary geometry orglobal geometry.

FIGS. 2-5 illustrate the process of incorporating a new inset geometrywithin a background geometry. For example, a terrain 100 may be thebackground geometry. Alternatively, the background geometry might be abuilding, dam, or mountain that incorporates a geometric displacement(e.g. by an explosion) and requires new inset geometry. Anothersituation that might require dynamic inset geometry would be a changinggeometry, such as bulldozer making cuts to the landscape in real time.In the case of an airport on mostly smooth or level terrain, the insetgeometry can be the portion of the geometry inside the airport fence.For more complex images or models that involve insets on cuts and fills,some additional surrounding terrain may be included.

The model with a portion removed 108 is shown in FIG. 3 and it requiresadditional geometry and control information. One or more polygons areused to define the footprint of the inset geometry. The footprint isused to define an opening cutter 104 (FIG. 2) used to cut a hole oropening 106 in the background geometry 102 or global geometry. Forexample, the opening cutter can define an area of a terrain hole toaccommodate an inset geometry 110, as in FIG. 4. The cutting can beimplemented by a hierarchical suppression of geometry facets based onwhether they are completely surrounded by the hole cutter 104 orimplemented in other ways known to those skilled in the art. During thedefining of the cutter footprint and the cutting of the backgroundgeometry, polygon facets that are not completely surrounded by thecutter (that straddle the cutter boundary) are divided into polygonfragments by the cutter boundary so that all the background polygonswill be either in or out of the cutter boundary.

A skirt of polygons 114 around the perimeter of the inset geometry iscreated so the outside vertices conform to the background geometry andthe inside vertices are coincident with the inset geometry 110, as shownin FIG. 5. The outside skirt vertices are shared with the vertices ofthe hole cutter 104. The skirt 114 is conformed to the background aroundthe skirt's outside perimeter, and the skirt is conformed by clipping itto the underlying background polygons. This creates additional verticesalong the inside edge of the skirt, where the skirt joins the insetgeometry. These additional vertices lie geometrically along theoriginal, unclipped inside edges of the skirt. Other, additionalvertices created during the clipping operation that lie between theinside and outside edges of the skirt get a blend of behavior betweenthe inside and outside skirt vertices.

Now that the invention has been described generally, further detailswill be presented with respect to the method for the invention. FIG. 6illustrates a flow chart depicting operations performed in an embodimentof the invention. A skirt is constructed around the perimeter of theinset geometry in block 200. The skirt polygons extend outward from theinset geometry a pre-selected distance that is not necessarily constantin all directions. This skirt shares vertices completely and exactlywith the inset geometry along the perimeter of the inset. Thecombination of the inset geometry with the skirt creates an extendedinset.

Next, the portion of the background geometry overlaid by the extendedinset is removed. This is done by constructing a cutter polygon orpolygons from the outside perimeter vertices of the skirt in block 202.The cutter polygon 212 is illustrated in FIG. 7 as it overlays thebackground geometry 214. The cutter polygon is clipped into a contiguousmesh of cutter fragments 216, where each fragment is wholly and exactlycontained within a background polygon of the background geometry that itoverlays and is geometrically coplanar with its associated backgroundpolygon. The initial cutter polygon is not necessarily in a plane and itwill be divided into polygons or triangles to match the actualbackground geometry. In addition, the cutter polygon may be applied byrendering it into the pixel frame buffer as a stencil mask to removebackground polygons and portions of background polygons covered by thecutter.

In the embodiment described, there is a “projection direction” of thecutter polygon 212 onto the background polygons 214. For backgroundgeometry, such as a simulated terrain, the cutter polygons are projectedvertically onto the background geometry and clipped against verticalclip planes defined by the edges of the underlying background polygons.

Each cutter fragment can then be associated with the background polygonit overlays so that subsequent graphics operations can properly applycutters to background polygons in stencil-like operations. In addition,any background polygon that is completely surrounded by a cutter can bediscarded, along with its overlaid cutter polygon, reducing subsequentprocessing and rendering effort. FIG. 8 illustrates that the applicationof the cutter polygon 212 generates a hole or opening in the backgroundgeometry that is precisely the shape of the geometry of the insetgeometry 222 and the skirt 220 to be inserted. The size of the geometryremoved by the cutter polygon is greater than the inset geometry toallow for the skirt. This means that the inset geometry does not need toknow the details about the background geometry and the skirt can act asa geometric blend region. In addition, the inset geometry does not needto be clipped because the skirt will be matched to the inset geometryalong their shared perimeter. Avoiding clipping the inset geometryreduces the complexity of inserting any given inset geometry into thebackground geometry. In this process, neither the background nor theinset geometry are modified which is a valuable advantage of the presentinvention.

The hole cutting technique is designed to utilize the largest possiblecutter polygons in order to maximize the ability to detect and discardbackground geometry facets that are wholly within the region ofinterest. If multiple cutter polygons are utilized, it is preferable(although not required) that they form a contiguous tiling of the areato be removed or suppressed, with complete vertex sharing. The systemneed not be able to discern all geometry facets that can be completelyremoved should they be covered by the collective effects of severalcutter polygons. As such, it is more effective when the system utilizesa single convex cutter polygon, even if it requires a large number ofvertices. It is more efficient to discard a completely coveredbackground polygon than to render it (along with an associated cutterpolygon) and then erase it pixel-by-pixel with a stencil operation.

Once the opening in the background geometry is formed, FIG. 9illustrates that the skirt polygons are clipped against the backgroundpolygons they overlay in block 204 (FIG. 6). This generates a set ofskirt fragments 230, each of which is entirely contained within onebackground polygon. In other words, the skirt fragments will be equal insize or smaller than the background polygons in which they are containedand the points at which the background polygons intersect the skirt 232help define where the fragments will be divided. In most cases, the setof clipped skirt fragments will be greater in number than the originalset of skirt fragments. These skirt fragments are not in a plane butwill generally conform to the background against which they were clippedand as modified by the blending.

Once the skirt polygons are clipped against the background polygons,updated vertex coordinates 232 in the projection direction are computedfor the clipped skirt fragment polygons as in 206 (FIG. 6). In the caseof a vertical projection direction, this means that new Z or altitudecomponents for the skirt fragments can be computed. The computedcomponent values can be a blend of at least one background attribute andat least one inset attribute at the skirt vertex, where these attributesmight include geometry, shading, texture and color data. The blendfactor can be based on the relative lateral location of each fragmentvertex in the skirt. In other words, vertices on the outside edge of theskirt receive 100% background behavior, vertices on the inside edge ofthe skirt receive 100% inset behavior, and vertices in between get anappropriate blend of the two. The clipped and conformed skirt thusbecomes an integration or transition region between background behaviorand inset behavior.

FIG. 10 illustrates that a first drop wall 252 of polygons beneath thevisible surface of the model is constructed (208 in FIG. 6) after thenew vertex coordinates are computed. The top vertices 260 of the dropwall polygons are shared with the original perimeter vertices of theinset geometry. The bottom vertices of these polygons are shiftedoutward slightly and their visible sides face outward from the insetgeometry. As illustrated in FIG. 10, the wall polygons are below thenominal “surface” which means that the drop wall is not visible to theend user.

The next step is creating a second drop wall of polygons in 210. Oncethe first wall is constructed, a second drop wall of polygons 256 isthen constructed and its top vertices are shared with the clipped skirtfragment vertices 258 along the perimeter. The bottom vertices of thesepolygons are shifted slightly inward and their visible sides faceinward. At this point, the system then renders all the resultantpolygons.

These two walls are geometrically coincident along their top edge, butthey do not have the same number of polygons, and do not share allvertices. This is significant because the points that join the first andsecond drop walls to either the inset geometry or background geometryare separate points. This means that although the top vertices of thedrop walls are intended to be located at the same numerical point (oralong the same geometric edge), the points may shift slightly when thegeometry is rotated or translated for viewing. Such shifting is causedby numerical or quantization inaccuracies that are created by a finiteaccuracy floating point system. In other words, at certain points intime the floating point calculation may be slightly inaccurate and thepoints 258, 260 will be slightly separated. This allows a user to seethe backdrop or error in the geometric model. Not only does theintersection of these two drop walls prevent cracks when there is alateral separation between the geometries, it also prevents cracks whenthere is a vertical separation or inaccuracy. This prevents an end userfrom seeing between or under the perimeter that joins the skirt andinset geometry.

The clipped skirt polygons share vertices exactly with the cutterpolygons along the outside perimeter, preventing visual cracks along theboundary between the background geometry and the skirt. The first set ofdrop wall polygons shares vertices exactly with the inside edge of theskirt, and a second set of wall polygons shares vertices exactly withthe outside edge of the original inset. Since the walls intersectgeometrically (due to the shift of their bottom vertices), any potentialvisual cracks along the boundary between the original inset and theinside edge of the skirt are geometrically closed off, even if thecoincident points 258, 260 are momentarily not coincident. The result isthe visually seamless insertion of one area of geometry inside anotherwithout any visual anomalies or cracks.

Because the inset can have a variable level-of-detail, the skirt anddrop wall polygons derived from the inset will also have a variablelevel-of-detail. In addition, the wall polygons can be constructed sothat they are just large enough to cover any potential crack. Ingeneral, this means that the height of each wall polygon is computed tosubtend about a pixel. This process takes into account the distance ofeach original inset perimeter vertex from the eye, and computes avertical drop for the corresponding wall bottom vertex that will (afterperspective transformation) cause it to be about one pixel below, sothat the wall polygon at that same position is about one pixel high.This minimizes the pixel fill-rate cost of the unseen wall polygons.

The cutter polygon or polygons form a hole in the background geometrythat exactly accommodates the geometry of the inset geometry. If theunderlying areas are not properly concealed, defects are shown duringthe actual display of the image. As mentioned, these defects can causevisual problems for users who view the final output. These defectsinclude shifts in the polygon boundaries that expose light or the colorof any backdrop layer, i.e. a “crack” that lets whatever is behind showthrough erroneously.

The defects can also provide discontinuities that are affected by thevirtual instrumentation utilized within the simulation environment. Forexample, an infrared sensor may detect visual errors as a temperaturedifference between the desired geometry and the cracks, which cansignificantly distort the function and information provided to the userduring the simulation. This can result in serious errors in performanceand training. Further, bright spots may occur that are aestheticallyunappealing during the training exercise and actually become distractingto the students utilizing the simulation environment. Since the processof generating images is often done at a rate of 60+ images per second,as the geometry is shifted during the simulation exercise, flickeringmay occur that distracts the student as well as provides falseinformation to the virtual instrumentation utilized within a simulationsystem.

Accordingly, it is important to cover these regions of possible cracksto prevent their inclusion during a simulation event. The approach ofthe present invention utilizes vertical walls of polygons constructedalong the inner edge of the skirt, which can extend several meters belowground within the global terrain. Since the walls are vertical, they areeasily constructed in an automatic fashion from the vertices definingthe inner edge of the clipped skirt. To complement this wall, a modeledin place, sloping, below-ground wall is generated as part of the insetgeometry. This structure is not clipped to the terrain, but provides aregion of double coverage that is large enough to close off any crackscompletely. Further, these “below ground” structures will not frequentlybe seen during the display operation, so they are simplified by omittingtexture or shading finesse.

An example of how this system can be used is in a flight or vehiclesimulator. For example, an airport terrain insert may be desired at aspecific point in a global geometry. The present invention allows theairport to be inserted without modifying or recompiling the globalgeometry. There may also be errors included in the modeling of theairport insert that is desired to be added in real time. The localdetail, however, must be matched up along the cut or skirt boundary anddivided into versions that can be manipulated to match along theboundary. This matching becomes more difficult if the airport positionmust be adjusted at run time in order to get each of the several runwaythresholds at the right place. The present invention can overcome theseproblems using a skirt to allow the airport insert geometry to beadjusted slightly to allow the boundaries to match-up without creatingvisual anomalies.

It is to be understood that the above-referenced arrangements areillustrative of the application for the principles of the presentinvention. Numerous modifications and alternative arrangements can bedevised without departing from the spirit and scope of the presentinvention while the present invention has been shown in the drawings anddescribed above in connection with the exemplary embodiment(s) of theinvention. It will be apparent to those of ordinary skill in the artthat numerous modifications can be made without departing from theprinciples and concepts of the invention as set forth in the claims.

1-11. cancelled
 12. A method for integrating an inset geometry within abackground geometry in a video graphics display system, comprising:determining a perimeter geometry of the inset geometry; defining a skirtgeometry to match the perimeter geometry of the inset geometry and theskirt geometry extends out to the background geometry; joining thegeometry of the inset geometry to the skirt geometry to form a boundaryregion between the inset geometry and the skirt geometry; covering theboundary region to prevent gaps from being exposed during display; anddisplaying the inset geometry and skirt geometry within the backgroundgeometry.
 13. A method as in claim 12, wherein the step of covering theboundary region further comprises the step of covering the boundaryregion with intersecting polygons below a viewable surface of the insetgeometry and background geometry.
 14. A method as in claim 12, whereinthe step of covering the boundary region further comprises the step ofcovering the boundary region with a first polygon wall connected to theinset geometry below a viewable surface of the inset geometry.
 15. Amethod as in claim 14, wherein the step of covering the boundary regionfurther comprises the step of covering the boundary region with a secondpolygon wall connected to the skirt geometry below a viewable surface ofthe inset geometry and the skirt geometry.
 16. A method as in claim 15,wherein the step of covering the boundary region further comprises thestep of covering the boundary region by intersecting the first polygonwall and the second polygon wall.
 17. A method as in claim 12, whereinthe step of defining a skirt geometry further comprises the step ofdefining a polygonal geometry that is used to match the inset geometryto the background geometry.
 18. A method as in claim 12, wherein thestep of defining a skirt geometry to match the perimeter geometryfurther comprises the step of defining a polygon skirt that is used totransition the inset geometry to the background geometry. 19-32.cancelled